/*  ----------------------------------------------------------------------------
 *  Arello Mobile
 *  Fast 3d Engine
 *  ----------------------------------------------------------------------------
 * Except where otherwise noted, this work is licensed under
 * http://creativecommons.org/licenses/by/3.0
 */

#ifndef __LIB3D_HARD_INDEX_BUFFER_H__
#define __LIB3D_HARD_INDEX_BUFFER_H__

namespace liba
{
namespace lib3d
{
namespace hard
{

class IndexBuffer
{
public:
	virtual ~IndexBuffer()
	{}
	virtual bool is_valid()const=0;
	virtual bool update( const int * indices, int indices_count )=0;
	virtual bool render( int index_pos, int primitive_count, int vertex_pos, int vertex_count )=0;
};

} // namespace hard
} // namespace lib3d
} // namespace liba
using namespace liba;

#endif //__LIB3D_HARD_INDEX_BUFFER_H__

